from datetime import datetime
from pyramid.view import view_config
from js.jquery import jquery


@view_config(route_name='home', renderer='templates/mytemplate.pt')
def my_view(request):
	jquery.need()
	return {'project': 'JSTest'}


@view_config(route_name='time', renderer='jsonp')
def time_view(request):
	time = datetime.now()
	return {'time': str(time),
	'title': 'This is the current time'}
